package cn.tedu.clyback.RolePermission.mapper;

import cn.tedu.clyback.RolePermission.pojo.vo.RolePermissionVO;
import org.apache.ibatis.annotations.Param;

import java.util.HashSet;
import java.util.List;

public interface RolePermissionMapper {
    void insertPermission(@Param(value = "roleId") Integer roleId,@Param(value = "permissionId") Integer permissionId);

    void deleteUserPermission(@Param(value = "roleId")Integer roleId,  @Param(value = "permissionId")Integer permissionId);

    HashSet<RolePermissionVO> selectUserByRoleId(Integer roleId);

    void deletePermission(@Param(value ="roleId")Integer roleId,@Param(value = "permissionId") Integer permissionId);
}
